a = """CATGCAGCTCCCGGAGACGGTCACAGCTTGTCTGTAAGCGGATGCCGGGA
GCAGACAAGCCCGTCAGGGCGCGTCAGCGGGTGTTGGCGGGTGTCGGGGC
TGGCTTAACTATGCGGCATCAGAGCAGATTGTACTGAGAGTGCACCATAT
GCGGTGTGAAATACCGCACAGATGCGTAAGGAGAAAATACCGCATCAGGC
GCCATTCGCCATTCAGGCTGCGCAACTGTTGGGAAGGGCGATCGGTGCGG
GCCTCTTCGCTATTACGCCAGCTGGCGAAAGGGGGATGTGCTGCAAGGCG
ATTAAGTTGGGTAACGCCAGGGTTTTCCCAGTCACGACGTTGTAAAACGA
CGGCCAGTGAATTAGAACTCGGTACGCGCGGATCTTCCAGAGATTAGCAG
GAAGTCCACAAATCCGTTAAACTCGCAGTTATTCATCGGATCGCCTGCGG
TTCGCGTTGCCGTGGTGATAATGACTCTTGATGCCAGTTCGCTTACTGAG
CCAGCAGAACGCATAACAACAACAGGGTAATATTTTCCAGATGTTGCACC
TGCAGGAGCGTTAACCCGCACATAACGCATACCACGCTTATCAGCAAAGT
CTGTTTTACTGACCGCGTTAATGTTGTTCAGGAAGCATCCCTTATCGGGT
ATATCAGCGCCGTTCTGGTCTTTCTGCAGACGTTTCTCTGCATTGTCATA
GGCTGATTTTACTGCCTTTGGCGTTGCCGCCAGCGTTTCAGACGTACTGT
TGGTCGCACTGCTGAGCTGTACTATCCCCTTTTTCGTCGTACTTGCATCC
TCAAGCGCCACGGCGGATGCAATATCCTCTGCCCGTTTAGCTGCTGTCTC
GGCGCGCGTTGCCGCGGATTCCGCCGTACTTTTGCTCTGAGCTGCCGCCG
TCGCACTGCCATCACCTTCATCAATCGTCGAACGGCAGGCGTGCAAACTT
GGCGTAATCATGGTCATAGCTGTTTCCTGTGTGAAATTGTTATCCGCTCA
CAATTCCACACAACATACGAGCCGGAAGCATAAAGTGTAAAGCCTGGGGT
GCCTAATGAGTGAGCTAACTCACATTAATTGCGTTGCGCTCACTGCCCGC
TTTCCAGTCGGGAAACCTGTCGTGCCAGCTGCATTAATGAATCGGCCAAC
GCGCGGGGAGAGGCGGTTTGCGTATTGGGCGCTCTTCCGCTTCCTCGCTC
ACTGACTCGCTGCGCTCGGTCGTTCGGCTGCGGCGAGCGGTATCAGCTCA
CTCAAAGGCGGTAATACGGTTAT"""

b = a[::-1]
c = []

for i in b:
    if i =="A":
        c.append("T")
    elif i =="T":
        c.append("A")
    elif i == "C":
        c.append("G")
    elif i == "G":
        c.append("C")
    elif i == "\n":
        c.append("\n")
    else:
        print(i)

print(c)
print(len(c))

d = ''.join(c)

print(d)

